package com.jielihaofeng.nettyadvance.chat.message;

import lombok.Data;
import lombok.ToString;

/**
 * @description 聊天发送消息
 * @author Johnnie Wind
 * @date 2021/11/18 11:13
 */
@Data
@ToString(callSuper = true)
public class ChatRequestMessage extends Message {

    // 内容
    private String content;
    // 接收方
    private String to;
    // 发送方
    private String from;

    public ChatRequestMessage() {
    }

    public ChatRequestMessage(String from, String to, String content) {
        this.from = from;
        this.to = to;
        this.content = content;
    }

    @Override
    public int getMessageType() {
        return ChatRequestMessage;
    }
}
